home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / utility / emxinfo.zip / MAKEFILE < prev    next >
Text File  |  1992-03-16  |  3KB  |  118 lines

  1. # Generated automatically from Makefile.in by configure.
  2. # Makefile for the info sources... -*- text -*-
  3. # Copyright (C) 1990, 1991 Free Software Foundation, Inc.
  4.  
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2, or (at your option)
  8. # any later version.
  9.  
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. # GNU General Public License for more details.
  14.  
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program; if not, write to the Free Software
  17. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  
  19. SHELL = /bin/sh
  20.  
  21. #### Start of system configuration section. ####
  22.  
  23. srcdir = .
  24.  
  25. CC = gcc -O
  26. INSTALL = /usr/bin/install -c
  27. INSTALLDATA = /usr/bin/install -c -m 644
  28.  
  29. # Things you might add to DEFS:
  30. # -DSTDC_HEADERS    If you have ANSI C headers and libraries.
  31. # -DHAVE_UNISTD_H    If you have unistd.h.
  32. # -DUSG            If you have System V/ANSI C string and
  33. #            memory functions and headers.
  34. # -DUSGr3        If you need to include sys/stream.h and sys/ptem.h
  35. #            to get the screen size from the kernel.
  36. DEFS =  -DSTDC_HEADERS -DUSG
  37.  
  38. # As with any program that uses the system ioctl () command, if you are
  39. # compiling that program with Gcc, and you do not have fixed include
  40. # files installed, then you should use the -traditonal flag to process
  41. # the file.  Of course, this is only if your gcc calls GNU cpp.
  42. #
  43. # What this means is -- if Info doesn't seem to work, and you have
  44. # compiled it with Gcc, add -traditional to CFLAGS and try again.
  45. #    GCC_TRADITIONAL = -traditional
  46. CDEBUG = -g
  47. CFLAGS = $(CDEBUG) $(DEFS) $(GCC_TRADITIONAL)
  48. LDFLAGS = -g
  49.  
  50. LIBS = 
  51.  
  52. prefix = /emx
  53.  
  54. # Where installed binaries go.
  55. bindir = $(prefix)/new
  56.  
  57. # Where info files go.
  58. infodir = $(prefix)/info
  59.  
  60. #### End of system configuration section. ####
  61.  
  62. SOURCES = info.c makeinfo.c getopt.c getopt1.c
  63. OBJECTS = info.o makeinfo.o getopt.o getopt1.o
  64. HEADERS = getopt.h
  65. SUPPORT = Makefile.in configure 
  66.  
  67. THINGS_TO_TAR = $(SOURCES) $(HEADERS) $(SUPPORT)
  68.  
  69. PROGS = info.exe makeinfo.exe
  70.  
  71. all: $(PROGS)
  72.  
  73. info.exe: info
  74.     strip info
  75.     emxbind -b /emx/bin/emxl.exe info info.exe
  76.  
  77. makeinfo.exe : makeinfo
  78.     strip makeinfo
  79.     emxbind -b /emx/bin/emxl.exe makeinfo makeinfo.exe
  80.  
  81. info:    info.o getopt.o getopt1.o
  82.     $(CC) $(LDFLAGS) -o $@ info.o getopt.o getopt1.o -ltermcap $(LIBS)
  83.  
  84. info.o: info.c
  85.     $(CC) -c $(CFLAGS) info.c
  86.  
  87. makeinfo: makeinfo.o getopt.o getopt1.o
  88.     $(CC) $(LDFLAGS) -o $@ makeinfo.o getopt.o getopt1.o $(LIBS)
  89.  
  90. makeinfo.o: makeinfo.c
  91.     $(CC) -c $(CFLAGS) makeinfo.c
  92.  
  93. info.o makeinfo.o getopt1.o: getopt.h
  94.  
  95. install: info.exe makefile.exe dir info.inf
  96.     copy makefile.exe $(bindir)/makefile.exe
  97.     copy info.exe $(bindir)/info.exe
  98.     copy dir $(infodir)/dir
  99.     copy info.inf $(infodir)/info.inf
  100.  
  101. TAGS: $(SOURCES)
  102.     etags $(SOURCES)
  103.  
  104. clean:
  105.     rm -f $(PROGS) $(OBJECTS)
  106.  
  107. distclean: clean
  108.     -rm -f TAG
  109.  
  110. realclean: distclean
  111.  
  112. dist: $(THINGS_TO_TAR)
  113.     rm -rf info-dist
  114.     mkdir info-dist
  115.     (cd info-dist; for i in $(THINGS_TO_TAR); do ln -s ../$$i .; done)
  116.     tar chzf info.tar.Z info-dist
  117.     rm -rf info-dist
  118.